From: Georges Basile Stavracas Neto Date: Wed, 20 Feb 2019 19:54:29 +0000 (-0300) Subject: Replace Clutter.Point by Graphene.Point X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~781^2^2~542 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=0615370930c2484dd5321add20a9060578e456f2;p=gnome-shell.git Replace Clutter.Point by Graphene.Point https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/421 --- diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index cc946f01c..a056a53be 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -1,7 +1,7 @@ // -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*- /* exported AppDisplay, AppSearchProvider */ -const { Clutter, Gio, GLib, GObject, Meta, Shell, St } = imports.gi; +const { Clutter, Gio, GLib, GObject, Graphene, Meta, Shell, St } = imports.gi; const Signals = imports.signals; const AppFavorites = imports.ui.appFavorites; @@ -1987,7 +1987,7 @@ var AppIcon = class AppIcon { this.name = app.get_name(); this.actor = new St.Button({ style_class: 'app-well-app', - pivot_point: new Clutter.Point({ x: 0.5, y: 0.5 }), + pivot_point: new Graphene.Point({ x: 0.5, y: 0.5 }), reactive: true, button_mask: St.ButtonMask.ONE | St.ButtonMask.TWO, can_focus: true, diff --git a/js/ui/dash.js b/js/ui/dash.js index 0f99b9c88..73418b1e6 100644 --- a/js/ui/dash.js +++ b/js/ui/dash.js @@ -1,7 +1,8 @@ // -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*- /* exported Dash */ -const { Clutter, GLib, GObject, Meta, Shell, St } = imports.gi; +const { Clutter, GLib, GObject, + Graphene, Meta, Shell, St } = imports.gi; const Signals = imports.signals; const AppDisplay = imports.ui.appDisplay; @@ -53,7 +54,7 @@ var DashItemContainer = GObject.registerClass( class DashItemContainer extends St.Widget { _init() { super._init({ style_class: 'dash-item-container', - pivot_point: new Clutter.Point({ x: .5, y: .5 }), + pivot_point: new Graphene.Point({ x: .5, y: .5 }), scale_x: 0, scale_y: 0, opacity: 0, diff --git a/js/ui/lookingGlass.js b/js/ui/lookingGlass.js index 35b47b036..03017d610 100644 --- a/js/ui/lookingGlass.js +++ b/js/ui/lookingGlass.js @@ -1,8 +1,8 @@ // -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*- /* exported LookingGlass */ -const { Clutter, Cogl, Gio, GLib, - GObject, Meta, Pango, Shell, St } = imports.gi; +const { Clutter, Cogl, Gio, GLib, GObject, + Graphene, Meta, Pango, Shell, St } = imports.gi; const Signals = imports.signals; const System = imports.system; @@ -352,7 +352,7 @@ var ObjInspector = class ObjInspector { this._parentList = []; - this.actor = new St.ScrollView({ pivot_point: new Clutter.Point({ x: 0.5, y: 0.5 }), + this.actor = new St.ScrollView({ pivot_point: new Graphene.Point({ x: 0.5, y: 0.5 }), x_fill: true, y_fill: true }); this.actor.get_hscroll_bar().hide(); this._container = new St.BoxLayout({ name: 'LookingGlassPropertyInspector', diff --git a/js/ui/messageList.js b/js/ui/messageList.js index 4dcdb6d7f..7faab03b9 100644 --- a/js/ui/messageList.js +++ b/js/ui/messageList.js @@ -1,4 +1,5 @@ -const { Atk, Clutter, Gio, GLib, GObject, Meta, Pango, St } = imports.gi; +const { Atk, Clutter, Gio, GLib, + GObject, Graphene, Meta, Pango, St } = imports.gi; const Main = imports.ui.main; const MessageTray = imports.ui.messageTray; const Signals = imports.signals; @@ -564,7 +565,7 @@ var MessageListSection = class MessageListSection { keyFocusId: 0, closeId: 0 }; - let pivot = new Clutter.Point({ x: .5, y: .5 }); + let pivot = new Graphene.Point({ x: .5, y: .5 }); let scale = animate ? 0 : 1; obj.container = new St.Widget({ layout_manager: new ScaleLayout(), pivot_point: pivot, diff --git a/js/ui/popupMenu.js b/js/ui/popupMenu.js index 49ed823b1..66a1c9cff 100644 --- a/js/ui/popupMenu.js +++ b/js/ui/popupMenu.js @@ -3,7 +3,7 @@ PopupImageMenuItem, PopupMenu, PopupDummyMenu, PopupSubMenu, PopupMenuSection, PopupSubMenuMenuItem, PopupMenuManager */ -const { Atk, Clutter, Gio, GObject, Shell, St } = imports.gi; +const { Atk, Clutter, Gio, GObject, Graphene, Shell, St } = imports.gi; const Signals = imports.signals; const BoxPointer = imports.ui.boxpointer; @@ -1130,7 +1130,7 @@ class PopupSubMenuMenuItem extends PopupBaseMenuItem { this.add(expander, { expand: true }); this._triangle = arrowIcon(St.Side.RIGHT); - this._triangle.pivot_point = new Clutter.Point({ x: 0.5, y: 0.6 }); + this._triangle.pivot_point = new Graphene.Point({ x: 0.5, y: 0.6 }); this._triangleBin = new St.Widget({ y_expand: true, y_align: Clutter.ActorAlign.CENTER }); diff --git a/js/ui/screenShield.js b/js/ui/screenShield.js index 2e2e95a38..576df48f6 100644 --- a/js/ui/screenShield.js +++ b/js/ui/screenShield.js @@ -1,7 +1,7 @@ // -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*- const { AccountsService, Clutter, Cogl, Gio, GLib, - GnomeDesktop, GObject, Meta, Shell, St } = imports.gi; + GnomeDesktop, GObject, Graphene, Meta, Shell, St } = imports.gi; const Cairo = imports.cairo; const Signals = imports.signals; @@ -486,7 +486,7 @@ var ScreenShield = class { this._lockDialogGroup = new St.Widget({ x_expand: true, y_expand: true, reactive: true, - pivot_point: new Clutter.Point({ x: 0.5, y: 0.5 }), + pivot_point: new Graphene.Point({ x: 0.5, y: 0.5 }), name: 'lockDialogGroup' }); this.actor.add_actor(this._lockDialogGroup);